package com.gongjie.blog.admin.service;

import com.gongjie.blog.dao.pojo.SysUser;
import com.gongjie.blog.vo.Result;
import com.gongjie.blog.vo.UserVo;

/**
 * @author jiegong
 * @create 2021-09-22 17:35
 */
public interface SysUserService {


    UserVo findUserVoById(Long id);

    SysUser findUserById(Long id);

    SysUser findUser(String account, String password);

    //根据token查询用户信息
    Result findUserByToken(String token);

    //根据用户查找用户
    SysUser findUserByAccount(String account);

    // 保存用户
    void save(SysUser sysUser);
}
